home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
dim.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
689b
|
21 lines
// "Rubber" mouse / kbd driven figures like circle, rectangle and line
#ifndef __DIMENTIONS_H
#define __DIMENTIONS_H
#include "graphpp.h"
#include "colors.h"
enum { FIXED = 0, MOVE = 1, RESIZE = 2, SCROLL_VERT = 4, SCROLL_HORIZ = 8 };
enum { FIG_RECTANGLE, FIG_LINE, FIG_CIRCLE, FIG_PCX };
extern rect get_dim(int fig_type, // RECTANGLE, CIRCLE, LINE
int action_type,
rect r = rect(0, 0, getmaxx(), getmaxy()), // work area
rect src = rect(0, 0,
pScreenSet->cell_width, pScreenSet->cell_height),
loc minsize = loc(0, 0),
loc step = loc(pScreenSet->cell_width,
pScreenSet->cell_height));
#endif __DIMENTIONS_H